BASEFRAME_ROOT=../../../baseframe
SRVFRAME_ROOT=../../../srvframe

INCLUDE=-I${SRVFRAME_ROOT}/include -I${BASEFRAME_ROOT}/include -I/usr/include/mysql
LIBS=-L${SRVFRAME_ROOT}/lib -lsrvframe -L${BASEFRAME_ROOT}/lib -lbaseframe /usr/lib64/mysql/libmysqlclient_r.a -pthread -lrt -lssl -lpcre

MACRO=-D_REENTRANT
#MACRO=-D_REENTRANT  -D__WITHOUT_MYSQL_DB__ -D__WITHOUT_PCRE__
CFLAGS=-g -Wall -fPIC ${MACRO}

BINARY=$(patsubst %.cpp, %, $(wildcard *.cpp))

all:$(BINARY)

%:%.cpp
	$(CXX) -o $@ $< $(INCLUDE) $(LIBS) $(CFLAGS) 

clean:
	@rm -f $(BINARY)
